package com.finalist.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 评论子项
 * @author Administrator
 *
 */
@Entity
@Table(name = "xx_review_classification")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_review_classification_sequence")
public class ReviewClassification extends BaseEntity{
	
	private static final long serialVersionUID = -7519486823153844436L;
	
	private String title ; //子项
	
	private Integer score; //分数
	
	private String content ; //子项评论内容
	
	private Float weights; //权重
	
	private Review review;//所属评论
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = false, updatable = false)
	public Review getReview() {
		return review;
	}

	public void setReview(Review review) {
		this.review = review;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Float getWeights() {
		return weights;
	}

	public void setWeights(Float weights) {
		this.weights = weights;
	}
	
}
